﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using ForumServer.Forum;
using System.Runtime.Remoting.Channels.Tcp;
using System.Runtime.Remoting.Channels;
using log4net;
using ForumServer;
using ForumLibrary;
using ForumLibrary.Data;

namespace ForumGUI
{
    public static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ClientConfiguration2.configure();
            ForumManager forumManager = (ForumManager)Activator.GetObject(typeof(ForumManager), "tcp://localhost:20172/ForumManager");
           // forumManager.register("1", "1", "shai", "1");
           // forumManager.register("1", "1", "yossi", "1");
            //forumManager.register("1", "1", "y", "1");
           // forumManager.addFriend("shai", "yossi");
            //forumManager.register("1", "1", "y", "1","y@y.il", "086788997", false);
            //forumManager.register("1", "1", "2", "2", "2@y.il", "0867834497", false);
            //forumManager.register("1", "1", "1", "1", "1@y.il", "086728997", false);
            //forumManager.register("1", "1", "benny", "1", "1@y.il", "086728997", true);//Takes 1 georgian to tango
            LoginFrame loginFrame = new LoginFrame(ref forumManager);
            Application.Run(loginFrame);
        }
    }
}
